const express = require("express");
const axios = require("axios");
const app = express();
app.use(express.static(__dirname));
app.get("/",(req,res)=>{
	axios.get("http://www.baidu.com").then(value=>{
		res.send(value.data);
	})
})
app.get("/maoyan",(req,res)=>{
	axios.get("https://i.maoyan.com/api/mmdb/movie/v3/list/hot.json?ct=上海&ci=10&channelId=4").then(value=>{
		res.json(value.data);
	})
})
app.listen(8090,()=>{
	console.log("success");
})